//
//  YGHomeBLL.h
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/16.
//

#import <Foundation/Foundation.h>
#import "YGPatientHomeModel.h"
#import "YGHospitalDetailModel.h"
#import "YGDoctorMessageModel.h"
#import "YGExpertsListModel.h"
#import "YGFoodGuideTypeModel.h"
#import "YGFoodGuideContentModel.h"
#import "YGFoodWikipediaTypeModel.h"
#import "YGFoodWikipediaTableModel.h"
#import "YGFoodWikipediaDetailModel.h"
#import "YGOwnHelpLabourStengthModel.h"
#import "YGOwnHelpDiseaseModel.h"
#import "YGOwnHelpDiseaseLowerModel.h"
#import "YGScienceCenterTypeModel.h"
#import "YGScienceCenterArticleDetailModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface YGHomeBLL : NSObject

//首页数据
+ (void)requestHomeInfoSuccess:(void (^)(YGPatientHomeModel *model))success fail:(void (^)(NSError *error))fail;

//医院详情数据
+ (void)requestHospitalDetailInfoSuccess:(void (^)(YGHospitalDetailModel *model))success fail:(void (^)(NSError *error))fail;

//营养自助方案-劳动强度字典数据
+(void)requestOwnHelpLabourStrengthInfoSuccess:(void (^)(NSArray <YGOwnHelpLabourStengthModel *> *model))success
                                          fail:(void (^)(NSError *error))fail;

//营养自助方案-获取一级病种
+(void)requestOwnHelpDiseaseInfoSuccess:(void (^)(NSArray <YGOwnHelpDiseaseModel *> *model))success
                                   fail:(void (^)(NSError *error))fail;

//营养自助方案-获取二级病种
+(void)requestOwnHelpDiseaseLowerWithPid:(NSString *)pid
                                Success:(void (^)(NSArray <YGOwnHelpDiseaseLowerModel *> *model))success
                                    fail:(void (^)(NSError *error))fail;

//医生信息数据
+(void)requestDoctorMessageWithPage:(NSInteger )page
                               rows:(NSInteger )rows
                            Success:(void (^)(YGDoctorMessageModel *model,NSInteger totalPage))success fail:(void (^)(NSError *error))fail;

//专家信息数据
+(void)requestExpertsListWithPage:(NSInteger )page
                             rows:(NSInteger )rows
                          Success:(void (^)(YGExpertsListModel *model,NSInteger totalPage))success fail:(void (^)(NSError *error))fail;

//饮食指南一级分类数据
+ (void)requestFoodGuideTypeInfoSuccess:(void (^)(NSArray <YGFoodGuideTypeModel *> *model))success fail:(void (^)(NSError *error))fail;

//饮食指南二级分类数据
+(void)requestFoodGuideLowerWithParentId:(NSString *)parentId
                                Success:(void (^)(NSArray <YGFoodGuideTypeModel *> *model))success
                                   fail:(void (^)(NSError *error))fail;

//饮食指南内容查询数据
+(void)requestFoodGuideContentWithTypeId:(NSString *)typeId
                                    Success:(void (^)(YGFoodGuideContentModel *model))success
                                    fail:(void (^)(NSError *error))fail;

//饮食百科一级分类数据
+ (void)requestFoodWikipediaTypeInfoSuccess:(void (^)(NSArray <YGFoodWikipediaTypeModel *> *model))success
                                       fail:(void (^)(NSError *error))fail;

//饮食百科二级分类数据
+(void)requestFoodWikipediaLowerWithParentId:(NSString *)parentId
                                    Success:(void (^)(NSArray <YGFoodWikipediaTypeModel *> *model))success
                                       fail:(void (^)(NSError *error))fail;

//饮食百科列表数据
+ (void)requestFoodWikipediaTableWithTypeId:(NSString *)typeId
                                       page:(NSInteger )page
                                       rows:(NSInteger )rows
                                    Success:(void (^)(YGFoodWikipediaTableModel *model))success
                                       fail:(void (^)(NSError *error))fail;

//查询饮食百科详情数据
+ (void)requestFoodWikipediaContentFoodId:(NSString *)foodId
                                  Success:(void (^)(YGFoodWikipediaDetailModel *model))success
                                     fail:(void (^)(NSError *error))fail;

//查询科普中心分类
+(void)requestScienceCenterTypeInfoSuccess:(void (^)(YGScienceCenterTypeModel *model))success
                                      fail:(void (^)(NSError *error))fail;  

@end



NS_ASSUME_NONNULL_END
